package club.emergency.wechat.dictionary.search;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Create with IntelliJ IDEA
 * Project Name: business
 * Package Name: club.emergency.wechat_api.dictionary.search
 * Date: 2018/11/26
 *
 * @author: 快乐的小菌菌
 * Description:
 */
public interface DictionarySearch {
    /**
     * 查询父子点数据
     *
     * @return 以字符串返回
     */
    @PostMapping("/dictionary-search-provider/flipListForParent")
    String flipListForParent();

    /**
     * 根据keyName查询子字典数据（一般在具体业务中调用）
     *
     * @param keyName 关键字
     * @return 以字符串返回
     */
    @PostMapping("/dictionary-search-provider/flipListByKeyName")
    String flipListByKeyName(@RequestParam("keyName") String keyName);

}
